﻿using System;
using System.Data.Linq.Mapping;
using System.Runtime.Serialization;

namespace IBBI.DataBase.Persistent {
    
    [DataContract]
    [Table(Name = "EQUIPMENT")]
    public class Equipment {

        [DataMember(Name = "ID")]
        [Column(Name = "ID", IsDbGenerated = true, IsPrimaryKey = true)]
        public int Id { get; set; }

        [Column(Name = "CATEGORY_ID")]
        public int CategoryId     { get; set; }

        [Column(Name = "NAME")]
        public string Name        { get; set; }

        [Column(Name = "DESCRIPTION")]
        public string Description { get; set; }

        [Column(Name = "THUMB")]
        public string  Thumb      { get; set; }

        [Column(Name = "IMAGES")]
        public string Images      { get; set; }

        [Column(Name = "PRICE")]
        public decimal Price      { get; set; }

        [Column(Name = "CURRENCY")]
        public string Currency { get; set; }

        [Column(Name = "CREATOR_ID")]
        public string CreatorId { get; set; }

        [Column(Name = "DATA")]
        public string Data { get; set; }

        [Column(Name = "DATE_CREATED")]
        public DateTime DateCreated { get; set; }

        [Column(Name = "DATE_UPDATED")]
        public DateTime DateUpdated { get; set; }
    }

}